package com.ltt.mapper;

import com.ltt.dao.pojo.Market;
import com.ltt.dao.pojo.Order;
import com.ltt.dao.vo.OrderVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author ‘李天泰’
 * @version 1.0
 * @description: TODO
 * @date 2023/5/5 15:36
 */
@Mapper
public interface MarketMapper {
    List<Market> getAllMarket();

    Market getMarket(int id);

    void buyMarket(Order order);

    List<OrderVo> findAllOrderById(String openid);
}
